Fixed an issue when loading files containing \ and ' characters.