Factored out the basic structure / logic for the resource pseudo-localization function and made it a discrete utility method in the Uize.Loc.Strings.Util module, with a basic / minimal unit test case to verify its behavior.