Updated doc examples to open using read binary mode