added char conversion utility

Signed-off-by: dvorkinista <villain@noironetworks.com>