Man jailed for hitting prostitute with gear stick