title: Converting UTF-16LE to UTF-8 gitlab ci
body: <p>I'm working on auto deploy to google cloud with gitlab ci
  use service json key to authenticate. I got stuck at when use echo command to create new json file which is UTF-16LE format but authentication needs UTF-8 no BOM to access.</p>
  
  <p>.gitlab-ci.yml</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>image: google/cloud-sdk:alpine
  
  deploy_in_appengine:
    stage: deploy
    tags:
      - gcloud
    environment:
      name: production
    only:
      - golang-api-gitlab-deploy
    script:
      - echo $SERVICE_ACCOUNT &gt; /tmp/gcloud-key.json
      - gcloud auth activate-service-account --key-file /tmp/gcloud-key.json
      - gcloud app deploy
  
  after_script:
    - rm -f /tmp/gcloud-key.json</code></pre>
  </div>
  </div>
  </p>