Ensured that RegEx patterns supplied to search function were bytes and not Unicode strings (#69).