Fix #733: Open import files using binary mode