Fixing display of newlines.

The encode function encodes \n into an XML entity so the substitution to
put in <br/> wasn't matching anything.

This fixes the display portion of #14.