fixes #41. encode alert parameters correctly on view pages.