removed binary mode from files (makes no sense; mucks things up)