Fixed overflow exception when encoding integer value of 0xFFFFFF (-1) on mono;

http://msdn.microsoft.com/en-us/library/k2ay192e.aspx
The >> operator shifts the bits of expression1 right by the number of bits specified in expression2.
The sign bit of expression1 is used to fill the digits from the left.