Fix for PUB-116. Throw an error if user-specified key in R is illegal. First character must be an alphabetic letter or underscore. Other characters must be alphanumeric or underscore.