Generally you do 1 of 2 things; either:
1: Modify the linbreaker to consume all variations of your inter-event garbage (including newlines) with:
SOULD_LINEMERGE = false
2: Allow the junk to be part of the end of each event and tell Splunk were to break
SHOULD_LINEMERGE = true
Generally, the latter is preferable.