$ 0 0 UTF-8 is a strict superset of ASCII, the MD5 sum of an ASCII string is the same as of the equivalent UTF-8 string.