prevent elasticsearch parse error (invalid UTF-8)