file opened in 'rb' mode resolves Issue #16