fixed an enconding bug when checking for gs version

The text read from `stdout` needs to be decoded from a byte stream object to an ascii string. As it were one could not import `maptlotlib` in py3 using the `text.usetex = True` rc option.