Sanitize serial strings for use on the filesystem.

Closes #113.