The str.encode() method does not accept keyword args in python < 2.7
Merged in dairiki/alembic/py26-no-encode-kwargs (pull request #6)

The str.encode() method does not accept keyword args in python < 2.7