encode spec with utf8