Be a bit more future-compatible

Extend the usage of `__future__` imports and improve unicode support.