Fixed buffer size issue
Fixed spaces

Added Test case
Fixed code to be more readable
Merge pull request #188 from asgeirh/master

Buffer too small problem in NpgsqlCopySerializer