[#896]: slashes should only be translated to OS-specific variant when writing to disk