hand cherry-pick json-dos-fix to pl master

same fix as https://tickets.opscode.com/browse/CHEF-3863 but for pl-master