title: Convert utf-8 to single-byte encoding
body: <p>I have a batch of wrongfully encoded records.
  This one-liner gives me out a correct result</p>
  
  <pre><code>cat example.txt | iconv -f utf-8 -t iso8859-2
  </code></pre>
  
  <p>But the following program give me an error <code>encoding: rune not supported by encoding.</code></p>
  
  <pre><code>func main() {
      s:= []byte {196, 144, 194, 154, 196, 144, 194, 176, 196, 144, 197, 186, 196, 144, 196, 190, 197, 131, 194, 128, 196, 144, 194, 176, 32, 52, 52, 53, 54, 50, 53, 54, 10, 10, 0, 0, }
      fmt.Println(s)
  
      dec := charmap.ISO8859_2.NewEncoder()
      out, err := dec.Bytes(s)
      if err != nil {
          fmt.Println(err)
          return
      }
      expectedOutput := "Камера 4456256"      
      fmt.Println("result", string(out), "expect:", expectedOutput)
  }
  </code></pre>
  
  <p>I'm wondering if my problem can be resolved without iconv bindings ?</p>