Character encoding doesn't even come into the picture when you do that. You can operate on straight binary with no issues, no implicit translation gets done.