Improve ambiwidth handling, readd additional_escapes

Fixes #307
Remove useless import
Merge branch '307-fix-ambiwidth' into develop