Fixed file reading

File reading wasn't working too well due to me using += and bytes read
being unsigned. Go me.