Replaced entire read/write_uint*_bigendian() family in readwrite library with simpler try_fgetc()/try_fputc() and bigendian-sorted calls to it.