Replace malformed input character and go on

if input is malformed in a log file, just replace the malformed
character with the default codec replacer and continue decoding instead
of failing.