enable UTF-8 support and other improvements