Better error handling.
Altered list of chars that need to be escaped.
Altered list of escaped chars.
Chars that still pose a problem: ;#%