Fix endless loop on filenames with invalid encoding
Fixes #428 (closed) (when launching Dia with a filename argument that is not a valid codepoint in the current encoding, it enters an endless loop).
Fixes #428 (closed) (when launching Dia with a filename argument that is not a valid codepoint in the current encoding, it enters an endless loop).