Encoding URLs in APIs: Avoiding Broken Requests and 400 Errors