Fixed error when regex check is done against bytestring.
Fixed error when regex check is done against bytestring.

The `if` statement above this change isn't always triggered, and
this sometimes causes the regex match to break.

mitsei/xbundle,mitsei/xbundle,mitsei/xbundle