fixed binary files processing (strcpy -> memcpy because we are working with bytes, not characters)