Revert "Use %m instead of strerror"

This reverts commit b05a808edd2195cc7e12f63a038887cf24213686.

It turns out it will not work.