added utf8 support to legacy steal library