Remove illegal chars from filename. Fix #16

I took the whitelist approach as recommended on this [StackOverflow question](http://stackoverflow.com/questions/295135/turn-a-string-into-a-valid-filename-in-python).