[ticket/11271] Make path conversion more precise

PHPBB3-11271