Test encoded binary output

Otherwise PHP sometimes refuses to match binary content using PCRE.

Signed-off-by: Michal Čihař <michal@cihar.com>
Fix regexp to match

Signed-off-by: Michal Čihař <michal@cihar.com>
Merge remote-tracking branch 'origin/QA_4_1'