Escape only of the characters "%", "/", and "#"
Fixes IOS-479