CHEF-5364 file resource should handle any content which can be converted to_s

convert content to string unless it is nil