fixed bug with mono crashing in empty/null string