Replace / with _ in filename before saving

Fixes #5