title: Using dplyr + gsub on many columns
body: <p>I'm using <code>dplyr</code> and <code>gsub</code> to remove special characters. I'm trying to translate a code I had with base R.</p>
  
  <p>Here's a fake example to resemble my data:</p>
  
  <pre><code>region = c("regi\xf3n de tarapac\xe1","regi\xf3n de tarapac\xe1")
  provincia = c("cami\xf1a","iquique")
  comuna = c("tamarugal","alto hospicio")
  
  comunas = cbind(region,provincia,comuna)
  </code></pre>
  
  <p>This works for me:</p>
  
  <pre><code>comunas = comunas %&gt;% 
    mutate(comuna = gsub("\xe1", "\u00e1", comuna), # a with acute
           comuna = gsub("&lt;e1&gt;", "\u00e1", comuna) # a with acute
    )
  </code></pre>
  
  <p>But now I want to apply the same to every column:</p>
  
  <pre><code>comunas = comunas %&gt;% 
    mutate_all(funs(gsub("\xe1", "\u00e1", .), # a with acute
           gsub("&lt;e1&gt;", "\u00e1", .) # a with acute
    ))
  </code></pre>
  
  <p>And I see the last chunk has no effect.  The idea is to obtain:</p>
  
  <pre><code>     region                     provincia   comuna         
  [1,] "regi\xf3n de tarapacá" "cami\xf1a" "tamarugal"    
  [2,] "regi\xf3n de tarapacá" "iquique"   "alto hospicio"
  </code></pre>
  
  <p>And any other needed change.</p>
  
  <p>Any idea? many thanks in advance !</p>