[ticket/7707] Add get_username_string() where possible

PHPBB3-7707