Echo error when saving files with invalid name