Issue 5928: Fatal exception when choosing a folder

Replaced a typecast of CharSequence to String with a safe conversion through a StringBuilder. This fixes a crash on some systems when the type of CharSequence returned by getText() is a SpannableString.
https://code.google.com/p/k9mail/issues/detail?id=5928