fix nodejs api bug on binary data