updates to append_utf8 method