libc: Added %S handling to [v]s[n]printf functions.

Also cleaned up width padding code.