Fix potential heap overflow when generating StatsD metric
Merge pull request #8 from csfrancis/fix_heap_overflow

Fix potential heap overflow when generating StatsD metric