Fix unsafe String object handling.