fixed for Safari

Uint8Array returns object not function on Safari