bugfix encodeURIComponent array