Couple of fixes

Hi!

Here are couple of fixes for Galleria.

One is a true bugfix for "typo" in error rendering and two others fix entity encodings for better XHTML compatibility and URLs.