improved amx cpp-string function

this change should also make the SDK work with projects written in C