fix edge case where filter arg contains string with pipe char; add test