1.8.2 update breaks the [video] links when one of these is enabled:
Changing urlencode() to htmlspecialchars_uni() should work just fine if I'm not mistaken.
EDIT: seems to work for me. And it should be used for images $url and both $name too to keep the HTML properly validated (required & -> & conversion etc.).
Fixes #1625 [video] links not correct
@Destroy666x htmlspecialchars_uni doesn't work since the whole post is already sanitized (unless HTML is enabled). Used mycode_parse_url instead as it handles special characters.