you change the functionality of the code - Assertion should be first (encoding was only to display < and > chars in log file)