Use JSON response; XML seem to have some issues in response with XML-encoding.
Refactoring