Override slow java.lang.String methods.

It'd be nice if we could somehow enforce this, but I don't know any way to do it.