ensure locale is set back to the original value