Not Mac-specific, so no need for UTF-8. I'm not sure about the encoding used for this function, just revert it for now