truncate filenames so that caching long URLs doesnt always fail

@asarazan