improve arrayBuffer to String conversion