$ perl -E' use encoding "UTF-8"; $x = "\xC2\x80"; say $x =~ /^\Q$x\E\z/ ?"match":"no match" ' match