Switch to byte-by-byte copy because casting away volatile is undefined b...

...ehavior.

Change-Id: I0881cc3db4e23cdde38149d4ab502a5fedfc86db