libs/strings.lua todec() neg number handling

Added negative number handling for string.todec()
Merge pull request #985 from Antinym/4.1-dev

libs/strings.lua todec() neg number handling