Prevent invalid characters in TileEntity config.

This should prevent YAML startup crashes when a mod uses an odd classname
for their TileEntity.