Fix metric length handling bugs.

Hey thanks for this package. It seemed like there were some issues with how the buffer is flushed.

- Account for joining newline '\n' byte buffer bounds checks.

- Check for metrics which are flat out too long.

- Fix (presumed) bug discarding Flush() errors during send().