BAC-473: fix utf8 issue in trimmed lyrics content

* Move ``utf8_encode`` later in the flow
* Fix PHP fatal in `lw_getPage`  function