uint8array implementation

1. uint8array (UCS-2 big endian format) implementation
2. repalce tab characters by space, and trailing space characters are trimmed
ok, is there any thing else?