Fix for display of spaces in history page

Patch contributed by "Leaves in Motion"

Change-Id: I3b48fc7e41e9eae9405a2659275f0b4abdf3f2c6