Fixed bug in egrid.py with byte-strings in filename when expecting unicode