Fixed buffer to string conversion