Escape ' characters in filepaths.