Add charset specification to ajax request.

Firefox automatically adds it, chrome doesn't, the current backend
chokes on it not being present.
Whitespace fix