Fixed URI issues in coerceToText().