sanitise file names. fixes #39
dataset update hook now runs the new code