adding helper string conversion function
g++ 4.4 compatibility fix