Improves the method for inserting 'X Profile' link on groupblog nav

Previously, a str_replace() technique was used, which caused problems when
the exact markup differed, as in the case of Twenty Twelve's different nav
class names.

See #841
Cleans up whitespace and documentation for secondary site nav modification code
Provides fallback for when iconv() is missing during groupblog creation