You shouldn't rely on manual inspect of print outs. If you want to validate the encoding then do it programmatically with asserts, otherwise leave these last two lines out.