Fixed a bug that prevented correct unicode escaping as required by SockJS specs