Handle unicode so it will not raise exceptions