A man has appeared in court accused of harassing Hampshire Police and Crime Commissioner Donna Jones.