Fix for #14. Empty request headers causing connection to fail

Fixed by detecting NULL headers and setting their values to an empty string, rather than NULL