title: Hack to to include special characters in file path in haven::read_sav()
body: <p>There <a href="https://github.com/tidyverse/haven/issues/371" rel="noreferrer">seems to be an issue</a> with the haven (1.1.1) package when including any type of special character in the file path, including just the file name.</p>
  
  <p>Assuming this is a real issue I am looking for some kind of neat hack/solution to get around it.</p>
  
  <p>An (not ideal) example would be to have R take a copy of the file into a more friendly path and give it a "better" filename and then load with haven. Such as:</p>
  
  <pre><code>setwd("c:/temp")
  fn &lt;- "randóóm.sav"
  file.copy(paste0("./äglæpath/", fn), fn)
  file.rename(fn, gsub("[^-\\./a-zA-Z0-9[:space:]]", "", fn))
  # now apply read_sav() to the copy
  </code></pre>
  
  <p>I'm using:</p>
  
  <pre><code>R version 3.5.0 (2018-04-23)
  Platform: x86_64-w64-mingw32/x64 (64-bit)
  Running under: Windows &gt;= 8 x64 (build 9200)
  </code></pre>