Why can’t you have : in file names? What file system is this?
macOS doesn’t care, at least on apfs; just tested. How are you hitting this?
Entirely sensible, & no reason for file storage to match the wire format. I’m just really curious what’s going on on macOS! I can test on hfs+ later.