Fixed string handling to use only 2.0 methods.