If you wish to interpret byte strings as UTF-8 instead, use the "encoding" pragma: use encoding 'utf8';