Add string handling tests

I am not sure those are enough, but they currently provide fairly decent
coverage;  running them on different platforms would be fun.