Refactor string layouts' String to byte[] conversions.