Revert "wmflib: add ensure_final_newline()"

This reverts commit 04945e956f835cb9849146db49df0559a6d28f94.

Change-Id: Ida7f2e2c6b889cc2a04d3569bf8de5ea4e17ef2b