add checked "adopt" function for UTF-N strings