Fixed bug in 'setCharAt'.