Sanitize layer names before exporting. Closes #13