0.9.x bigfilename fix

Backport of pr #89 "carbon-cache cpu usage 100% when sent metric with too big name" to 0.9.x
Fixes #267