Fix for issue DOTNETAPI-12 on dev.kayako.com

This is to fix an issue I was having submitting a ticket post using the .NET api. The issue can be found here: http://dev.kayako.com/browse/DOTNETAPI-12