Changed ascii decoding and encoding to utf8