Emoji is just an extreme example. It also occurs when you create a word file on mac with a "long dash" or "em dash" in the title and then save it. Unfortunetely word is smart and converts the "-" in a title automatically to a "–", which looks similar, but results in a unicode filename.
Note: This does not happen with Word on Windows. Only with Word on macOS...