[BUGFIX] Sanitize identifier when compiling templates
[BUGFIX] Sanitize identifier when compiling templates

The "identifier" of a compiled template is based on the
last modification timestamp and on the name of the original
template/partial/layout.
if that name contains special characters (like dashes),
the class name of the compiled template is invalid
resulting in a fatal error.
This is fixed by sanitizing the identifier before creating
the compiled template.

Change-Id: I89eb9fae476d7e642618639f56d401158f69f7e8
Resolves: #29457
Original-Commit-Hash: 8762cd91d138adb7a4cfa4d289e5bfa2a735155a

neos/fluid,neos/fluid