raise an ImportError (rather than fatal) when __import__ is not found in __builtins__ (closes #17867)
ignore errors when trying to fetch sys.stdin.encoding (closes #17863)