Fixed #520 Add system.characterEncoding
Added test for system.characterEncoding (#520)