This mimics the same behavior as the Python 2 code path: bail out on non-ascii strings.