Fixed string escaping in when calling `DownloadFile` and `SetStatusChanged`

When calling `DownloadFile` and `SetStatusChanged`, the string was not correctly escaped (replacing a `'` with `'` instead of `\'`).