Open file in binary mode to support ruby utf8 internal encoding