Ignore header lines when requesting codecs
Fix filters extracted with trailing spaces
Add capabilities tests