draft: ensure writing and reading is done in UTF-8