def fs_replace_badchars(payload):
    """Replace characters that conflict with the flowsynth syntax."""
    badchars = ['"', "'", ";", ":", " "]
    for char in badchars:
        payload = payload.replace(char, "\\x%s" % str(hex(ord(char)))[2:])
    payload = payload.replace("\r\n", "\\x0d\\x0a")
    return payload
Replace characters that conflict with the flowsynth syntax.
app/flowsynth.py