strip off null bytes, check if response is empty