Properly convert from NSStrings to and from paths