it does by using one the gnome APIs to convert the stream into UTF8 but it can still be fooled. Apparently @ingorichter was able to open a Linux executable (translated into UTF8) so clearly some work is left to be done but it does cover most cases.