ResourceFork replacement: Fixes a few issues, avoiding crashes.