Bugfix, ensure that libraries aren't created with invalid characters in name.