add check for bad characters in version