added FILTER_ESCAPE_ILL_FORMED_BYTES