Proper escaping of special characters in grid views

Fixes #320