[core-utils] fix detecting content type by url