if sanitized is true, will run the sanitizedForEncoding function before encoding the string.
sanitized
sanitizedForEncoding
String encode(String source, {bool sanitized = true});