Fixed some ajax encodings