Improvements to string encodings and runtime.