Added support for filtering illegal characters instead of quoting them

Signed-off-by: Jean-Denis Muys <jdmuys@mac.com>