file_create_url() causes LogicException when used with certain stream wrappers