Use String.charAt to lookup string characters by index

Using object property accessor for string character lookup breaks in non-modern browsers.