fix Array.encoding issue