BF: better support for unicode strings