HTTP upload: fixed bug on management of byte 0