utf-8 support and isSame() method