Use string at instead of just adding to the buffer.
Fixed: Correctly checks for AAC audio.
Fixed: Don't add a buffer if buf is text.