Eliminate disallowed characters in test debug IDs

This fixes the test CustomDateFormats for Vaadin 7.2, where the
set of allowed characters is narrower than in 7.1.

Change-Id: Ife8418aa589914eff665e47fa95c4353bcdb2aff