introduce helpers for encoding from and to utf8
support unicode in source files
fix -repr on characters outside the ascii range
add missing tests