Moves the encoded_line method to the abstract class

That way we can re-use the same logic on the CssDependencyResolver as
well, which has a similar issue when the stylesheet's encoding may not
be utf-8.