I didn't encountered this error ever in drupal. I search google and found this link may be helpful for you. It says do you have underscore in your database or domain name? If so, try removing the underscore and then try.
Another similar problem is discussed in below link. Not sure the answers will help or not.