issue #216 - use charAt() to access chars in string cross-browser, fixes IE-problem in ColorField