newline&encoding fixes confirmed to fix content-length errors;
return empty string when no favoured releaseGroup was found;