Replaces ESAPI with custom encoder