(#3) - add utf8 encoding method