Workarounds for older bytestrings