Updated docs, added to tests, fixed a bug in escaping regular expressions,
hardened the normalize-charset function, added the '--charset' parameter
functionality.