RISC-V: Make port I/O string accessors actually work