py3: Add unicode=str alias.
python 3: replace `ord()` for mmap compatibility.