fopen and _lcrea +b bug fix (thanks Jon)