Use charAt() instead of regex for efficiency.
Merge branch 'release_0.8' of github.com:firebase/angularFire into release_0.8