Decode and encode array directly without for loop
Merge pull request #154 from torhve/better-string-decoding

Decode and encode array directly without for loop