Fix encoding issue in URLs