fixed bug: NULL padding
Fixed bug: terminate buffer.position
Fixed bug: buffer termination
Merge pull request #12 from hasunuma-k/master

Fixed bugs: Strings.encode