Tiny changed msg to encode utf8.