Use bytes pattern instead of string patterns.