Extractor: move removal of trailing backslash from Locale to here, it is also need in this module