You forgot to encode.
Simple way to fix:
use open ":std", ":encoding(UTF-8)"; [download]
In reply to Re^3: Another Unicode/emoji question by ikegami in thread Another Unicode/emoji question by Bod