This change will make sure that UTF-8 characters get encoded (i.e. to a form of \u2028), this prevents JSON breakage when characters like "UTF line separator" is entered by the user.
Basically this frees us from having to identify and filter out special characters that could otherwise break JSON.
implements #14863