added escaping and encoding filters