Fixed crash when replacing filepath slash with non-writable symbol