properly escape for query key with array index

Fixes g0v/api.ly#31