properly stringify path