$ perl -Mutf8 -MURI::Escape -E'say utf8::is_utf8(uri_unescape shift) ? "characters" : "bytes"' %E4%BA%8E%E6%96%AF%E5%B1%88%E8%BE%BE%E5%B0%94 bytes