scg: use utf-8 encoding (issue #334)