title: Illegal Byte sequence in a file name while checking out git branch
body: <p>I am using git in cli to change the current branch:</p>
  
  <pre><code>git checkout dev
  </code></pre>
  and it produces:
  
  <blockquote>
    <p>fatal: cannot create directory at 'app/src/androidTest/java?com': Illegal byte sequence</p>
  </blockquote>
  
  <p>As answered <a href="https://stackoverflow.com/questions/18953667/illegal-byte-sequence-error-while-using-shell-commands-in-mac-bash-terminal">in this question</a> and <a href="https://stackoverflow.com/questions/19242275/re-error-illegal-byte-sequence-on-mac-os-x">this one</a>, I tried:</p>
  
  <pre><code>LC_ALL=C git checkout dev
  </code></pre>
  
  <p>or</p>
  
  <pre><code>LC_CTYPE=C git checkout dev
  </code></pre>
  but I am getting the same error as shown above. 
  
  <p>Running: </p>
  
  <pre><code>git status
  </code></pre>
  
  <p>shows that some of the files were changed by the <code>checkout</code>, but I am still on the <code>master</code> branch.</p>
  
  <p>How can I remove the file causing the problems or how can I checkout the branch without getting this error?</p>