fix urls with bad UTF-8 for file uploads