Add additional padding on unescape scenarios.  Also fix appendformat which does not use vsnprintf correctly.
Additional fix in buffer to avoid buffer overflow on last byte.
Merge pull request #24 from figment/development

Development