Improved urldecoding for URLs