Fix JSON string re-encoding to support escapes
Find out Accept-* header values in passed headers and put them into
url.el variables, so it doesn't double these headers with default
values.