Fix some string formatting bugs.