Core: Use charAt instead of array notation on strings, to support IE8(?)

Closes #1067