Fix encoding signed int64 and sint64

Fix encoding signed int64 and sint64 numbers