Revert "Use bytes pattern instead of string patterns."

This reverts commit c4f03c0d4f3074ee4d58193bbb43a48ce9e12e72.