Fix escaping of regexp class.