Convert URL file extensions to an accept header