Fix parsing error when URL contains Unicode characters