replacing characters so it does not interfere with JSON string