Fixes improper URI encoding