This is sort of a global issue and is being partly addressed by @elliotwoods 's PR for ofDataPath #1523
We should refrain from doing string manipulation on paths and use poco path for everything but actually passing the path to the loader/saver/manipulator .