Fix Tiles 3 support when definition names contain _

In order to handle correctly definition name containing
underscore characters, this commit implements a locale
detection mechanism on Tiles3 definition names, in order to
detect if the filename suffix identify a valid Locale or not.
If no valid locale is identified, Locale.ROOT is used.

Issue: SPR-11491