Fixed bug on cutting of param and segment

This patch fixes cutting URI param and segment from extension.
ex.) '/path/to/image.jpg?param1=a#segment' -> 'jpg' (prior, 'jpg?param1=a#segment')

Solution for #21: Cannot preload files with parameter.