get file extension from content-type header