Fixed an no method 'each' on String error.

The datasource was an array, but not any more. This commit convert
the datasource to string.