Correctly escape RSS output
Fix some whitespace errors
Correctly set JSON content type