make sure we are dealing with bytestrings when migrating