[COOK-3578] Fix support for package_id with spaces

This fixes [COOK-3578](https://tickets.opscode.com/browse/COOK-3578)