Add filtering and escaping functions