Encode as UTF-8 prior to comparison