uint8array implementation

1. uint8array (UCS-2 big endian format) implementation
2. repalce tab characters by space, and trailing space characters are trimmed
What I meant was "Can you test that the returned type IS an unit8array". By your test, if the call returned an empty string the test would pass, even though we expect an uint8array. Same for tests that actually return real data.