source: Fix creating FileSource for uri file://
source: Fix switch buffer