Added C-implementation as fallback for edge-cases

Example of filename that doesn’t work with createFileAtPath:
main.o~>