Send hostname and sanitize quotes

These 2 modifications were taken from collectd-carbon.