fix piio's backend, and string handling