Fix for readString bug in scala 2.10.0