Improve Unicode support in FreeBSD