WIP string encoding should check for unsafe characters. NOT DONE YET