set encoding of inputs/outputs to "UTF-8"