Do you mean a String as in the whole unicode set (Java doesn't use ASCII), or a String as in "14"?
What I would do is grab the char array (char can be cast as int), then call Integer.toHexString() on each of the characters, shoving them into a StringBuffer.
So:
Code:
char[] chars = foo.toCharArray();
StringBuffer output = new StringBuffer();
for(int i = 0; i < chars.length; i++){
output.append(Integer.toHexString((int)chars[i]));
}