better error; return Buffer instead of converting to Uint8Array