fix non-ASCII character encoding, particularly Chinese.

bug: please refer to #107. This fixed that issue by patching the ngModel.$setViewValue and the output function with a encoding converstion function.