Fix 500 error for repos with newline in file name

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>