#12266: Fix str.capitalize() to correctly uppercase/lowercase titlecased and cased non-letter characters.