Fixes problem with char encoding.