Fixes #4972 decode special chars before encoding for friendly titles