Safer file io for configuration files Upstream-commit: 0b67f4c8951bccfecc8bafba66e7248309fb0c7c Component: engine