Don't use GetErrorStrFromCode(), which is not defined in 3.5.x.
Merge pull request #1126 from kacfengine/safe_open_3.5.x

[3.5.x] Don't use GetErrorStrFromCode(), which is not defined in 3.5.x.