Fix text/byte loading on native targets