Cleanup rfc parsing

* Fix rfc5424 parsing issues
* Trim messages correctly when shorter then max size (UDP)