ascii codec cant encode character

fix bug in string handling

https://github.com/fedora-infra/pkgwat.cli/issues/24

Signed-off-by: Ariel O. Barria <ariel.barria@gmail.com>