Encode URI compents. Don't rely on browsers doing what I mean, not what I say.