Move safe_strerror to anonymous namespace.