Fixes improper database name when a '.' is included while creating a new rails
application. EG: `rails new something.awesome.com`
Conflicts:
	railties/CHANGELOG.md
Merge pull request #8303 from jeremywrowe/master

Fixes improper database name when creating a new rails app with a '.'

Conflicts:
	railties/CHANGELOG.md