Enhanced parsing the accept header.