handle file uploads with url encoded content types better