Removed encode() from admin redirects. Removed unnecessary <br /> at the end of comments. Line counting code now ignores empty lines.