[Java] Resolve issue on escape character show when using LogstashEncoder
When passing data to LogStash, it will show escape character in log message. But sometime, it cannot update logstash pipeline to replace specific character so need to implement in code level.