Filename Bug

Fixed a Bug for a file that cant saved to the disk, because the filename have illegal character.


credits for the added method: http://stackoverflow.com/a/4939814/644629