There's always another option: get a spy camera such as a watch or necklace with a hidden camera on it (they're much cheaper than you may think) and keep it on record mode when you're out at night. If a guy harasses you, use it to compile evidence against them to use later.
Plus, in most countries, it's perfectly legal to record in a public place so you shouldn't get in trouble for it.