Accept unicode in SimpleBuffer and fix BaseConnection error handling