This backouts changeset 7c54917b31f6 in which code to prevent adding b'' in
front of second argument of open() was deleted in favour of pycompat.open().
Looking back, that's looks like a wrong decision as replacing open() with
pycompat.open() is not a good idea because of the following reasons:
- There are around 100 occurences of open() call, it's better if we can prevent replacing all these calls
- In future, when we will dropping all the compatibility code, we don't have to take care of changing pycompat.open back to open