Issue #1 fix

authinfo isn't a zero-terminated string, so buffer_append_string_buffer ate the last char. This fix uses buffer_append_string_len to copy data correctly.