Update Collection.php

encode single quotes in json output