Updated convert_filename for python3 compatibility.

Fixed another filename unicode bug.