Fix issue when special chars in messages affected a browser's parser