Escape input before attempting to create filter regex.